<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="http://www.baidu.com">
<!--  readonly：只读-->
  用户名<input type="text" name="username" maxlength="5" value="111" readonly><br>
  密码<input type="password" name="password"><br>

<!--  value是单选框必须添加的属性，否则提交on-->
<!--  checked默认选中-->
  性别<input type="radio" value="m" checked name="gender" id="r1"><label for="r1">男</label>
  <input type="radio" value="w" name="gender" id="r2"><label for="r2">女</label><br>
  兴趣爱好<input type="checkbox" value="hj" name="hoppy" id="h1"><label for="h1">喝酒</label>
  <input type="checkbox" value="cy" name="hoppy" id="c1"><label for="c1">抽烟</label>
  <input type="checkbox" value="tt" name="hoppy" id="t1"><label for="t1">烫头</label><br>
  <lable>生日</lable><input type="date" name="birthday"><br>
  <label>小丑照</label><input type="file" name="pic"><br>
  <label>所在地</label>
<!--  selected默认选中-->
<!--  value设置提交的内容-->
  <select name="city" id="">
    <option value="bj">北京</option>
    <option value="sh">上海</option>
    <option value="gz" selected>广州</option>
  </select><br>
  <input type="submit" value="注册"><br>
</form>
</body>
</html>